﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _0912144_0912207_FigureDraw
{
    public class GDIPlusAdapter : DrawingLibrary
    {
        private GDIPlusAdaptee gdiPlusAdaptee;


        public GDIPlusAdapter()
        {
            // TODO: Complete member initialization
            gdiPlusAdaptee = new GDIPlusAdaptee();
        }

        public override void DrawLine(Paper drawPaper, Vector2 oldP, Vector2 curP)
        {
            gdiPlusAdaptee.DrawLine(drawPaper, oldP, curP);
        }

        public override void DrawEclipse(Paper drawPaper, Vector2 oldP, Vector2 curP)
        {
            gdiPlusAdaptee.DrawEclipse(drawPaper, oldP, curP);
        }

        public override void DrawRectangle(Paper drawPaper, Vector2 oldP, Vector2 curP)
        {
            gdiPlusAdaptee.DrawRectangle(drawPaper, oldP, curP);
        }

        public override void SavePNG(string filePath)
        {
            gdiPlusAdaptee.SavePNG(filePath);
        }
    }
}
